﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace aPCSuite
{
    public delegate void close_event(object sender, EventArgs e);
    public partial class Form5 : Form
    {
        public event close_event _close_event = null;
        public Form5()
        {
            InitializeComponent();
            label1.Font = new Font(label1.Font.FontFamily, 10);
        }

        public void SetProgressStatus(string status)
        {
            label1.Text = status;
            label1.Refresh();
        }

        private void btnCancel_Click(object sender, EventArgs e)
        {
            if (_close_event != null)
                _close_event(null, EventArgs.Empty);
            this.Close();
        }

        private void Form5_FormClosing(object sender, FormClosingEventArgs e)
        {
            if (_close_event != null)
                _close_event(null, EventArgs.Empty);
        }
    }
}
